<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sampleFile - OpenGrok cross reference for /sampleFile</title></head><body>
<script type="text/javascript">/* <![CDATA[ */
function get_sym_list(){return [["Variable","xv",[["delegate",37],["formatter",148],["mainColor",84],["private  weak var dayView",52],["private weak var bottomView",41],["private weak var dayNextBtn",43],["private weak var dayPrevBtn",44],["private weak var middleView",40],["private weak var monthNextBtn",46],["private weak var monthPrevBtn",47],["private weak var monthView",53],["private weak var topView",39],["private weak var yearNextBtn",49],["private weak var yearPrevBtn",50],["private weak var yearView",54],["selectedDate",57]]],["Class","xc",[["D2PDatePicker",35]]],["Function","xf",[["awakeFromNib",98],["changeDate",165],["didChange",32],["draw",210],["set",142],["setLabel",147]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class='fold-space'>&nbsp;</span><span class="c">// Copyright (c) 2017 di2pra &lt;pas495@gmail.com&gt;</span>
<a class="l" name="2" href="#2">2</a><span class='fold-space'>&nbsp;</span><span class="c">//</span>
<a class="l" name="3" href="#3">3</a><span class='fold-space'>&nbsp;</span><span class="c">// Permission is hereby granted, free of charge, to any person obtaining a copy</span>
<a class="l" name="4" href="#4">4</a><span class='fold-space'>&nbsp;</span><span class="c">// of this software and associated documentation files (the &quot;Software&quot;), to deal</span>
<a class="l" name="5" href="#5">5</a><span class='fold-space'>&nbsp;</span><span class="c">// in the Software without restriction, including without limitation the rights</span>
<a class="l" name="6" href="#6">6</a><span class='fold-space'>&nbsp;</span><span class="c">// to use, copy, modify, merge, publish, distribute, sublicense, <a href="/source/s?path=and/">and</a>/<a href="/source/s?path=and/or">or</a> sell</span>
<a class="l" name="7" href="#7">7</a><span class='fold-space'>&nbsp;</span><span class="c">// copies of the Software, and to permit persons to whom the Software is</span>
<a class="l" name="8" href="#8">8</a><span class='fold-space'>&nbsp;</span><span class="c">// furnished to do so, subject to the following conditions:</span>
<a class="l" name="9" href="#9">9</a><span class='fold-space'>&nbsp;</span><span class="c">//</span>
<a class="hl" name="10" href="#10">10</a><span class='fold-space'>&nbsp;</span><span class="c">// The above copyright notice and this permission notice shall be included in</span>
<a class="l" name="11" href="#11">11</a><span class='fold-space'>&nbsp;</span><span class="c">// all copies or substantial portions of the Software.</span>
<a class="l" name="12" href="#12">12</a><span class='fold-space'>&nbsp;</span><span class="c">//</span>
<a class="l" name="13" href="#13">13</a><span class='fold-space'>&nbsp;</span><span class="c">// THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<a class="l" name="14" href="#14">14</a><span class='fold-space'>&nbsp;</span><span class="c">// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a class="l" name="15" href="#15">15</a><span class='fold-space'>&nbsp;</span><span class="c">// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<a class="l" name="16" href="#16">16</a><span class='fold-space'>&nbsp;</span><span class="c">// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a class="l" name="17" href="#17">17</a><span class='fold-space'>&nbsp;</span><span class="c">// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<a class="l" name="18" href="#18">18</a><span class='fold-space'>&nbsp;</span><span class="c">// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span>
<a class="l" name="19" href="#19">19</a><span class='fold-space'>&nbsp;</span><span class="c">// THE SOFTWARE.</span>
<a class="hl" name="20" href="#20">20</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="21" href="#21">21</a><span class='fold-space'>&nbsp;</span><span class="c">//</span>
<a class="l" name="22" href="#22">22</a><span class='fold-space'>&nbsp;</span><span class="c">//  D2PDatePicker.swift</span>
<a class="l" name="23" href="#23">23</a><span class='fold-space'>&nbsp;</span><span class="c">//  D2PDatePicker</span>
<a class="l" name="24" href="#24">24</a><span class='fold-space'>&nbsp;</span><span class="c">//</span>
<a class="l" name="25" href="#25">25</a><span class='fold-space'>&nbsp;</span><span class="c">//  Created by Pradheep Rajendirane on 09/08/2017.</span>
<a class="l" name="26" href="#26">26</a><span class='fold-space'>&nbsp;</span><span class="c">//  Copyright &#169; 2017 DI2PRA. All rights reserved.</span>
<a class="l" name="27" href="#27">27</a><span class='fold-space'>&nbsp;</span><span class="c">//</span>
<a class="l" name="28" href="#28">28</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="29" href="#29">29</a><span class='fold-space'>&nbsp;</span><b>import</b> <a href="/source/s?defs=UIKit" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIKit</a>
<a class="hl" name="30" href="#30">30</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="31" href="#31">31</a><span class='fold-space'>&nbsp;</span><b>public</b> <b>protocol</b> <a class="d" name="D2PDatePickerDelegate"/><a href="/source/s?refs=D2PDatePickerDelegate" class="d intelliWindow-symbol" data-definition-place="def">D2PDatePickerDelegate</a>: <b>class</b> &#123;
<span id='scope_id_78341b17' class='scope-head'><span class='scope-signature'>didChangenull</span><a class="l" name="32" href="#32">32</a><a style='cursor:pointer;' onclick='fold(this.parentNode.id)' id='scope_id_78341b17_fold_icon'><span class='fold-icon'>&nbsp;</span></a>    <b>func</b> <a class="xf" name="didChange"/><a href="/source/s?refs=didChange" class="xf intelliWindow-symbol" data-definition-place="def">didChange</a>(<a href="/source/s?defs=toDate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">toDate</a> <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a href="/source/s?defs=Date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Date</a>)</span>
<span id='scope_id_78341b17_fold' class='scope-body'><a class="l" name="33" href="#33">33</a><span class='fold-space'>&nbsp;</span>&#125;
<a class="l" name="34" href="#34">34</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="35" href="#35">35</a><span class='fold-space'>&nbsp;</span><b>public</b> <b>class</b> <a class="xc" name="D2PDatePicker"/><a href="/source/s?refs=D2PDatePicker" class="xc intelliWindow-symbol" data-definition-place="def">D2PDatePicker</a>: <a href="/source/s?defs=UIView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIView</a> &#123;
<a class="l" name="36" href="#36">36</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="37" href="#37">37</a><span class='fold-space'>&nbsp;</span>    <b>public</b> <b>weak</b> <b>var</b> <a class="xv" name="delegate"/><a href="/source/s?refs=delegate" class="xv intelliWindow-symbol" data-definition-place="def">delegate</a>: <a class="d intelliWindow-symbol" href="#D2PDatePickerDelegate" data-definition-place="defined-in-file">D2PDatePickerDelegate</a>?
<a class="l" name="38" href="#38">38</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="39" href="#39">39</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=topView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">topView</a>:<a href="/source/s?defs=UIView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIView</a>!
<a class="hl" name="40" href="#40">40</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=middleView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">middleView</a>:<a href="/source/s?defs=UIView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIView</a>!
<a class="l" name="41" href="#41">41</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=bottomView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">bottomView</a>:<a href="/source/s?defs=UIView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIView</a>!
<a class="l" name="42" href="#42">42</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="43" href="#43">43</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=dayNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayNextBtn</a>:<a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>!
<a class="l" name="44" href="#44">44</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=dayPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayPrevBtn</a>:<a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>!
<a class="l" name="45" href="#45">45</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="46" href="#46">46</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=monthNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthNextBtn</a>:<a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>!
<a class="l" name="47" href="#47">47</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=monthPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthPrevBtn</a>:<a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>!
<a class="l" name="48" href="#48">48</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="49" href="#49">49</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=yearNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearNextBtn</a>:<a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>!
<a class="hl" name="50" href="#50">50</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=yearPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearPrevBtn</a>:<a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>!
<a class="l" name="51" href="#51">51</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="52" href="#52">52</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b>  <b>weak</b> <b>var</b> <a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>:<a href="/source/s?defs=DayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">DayView</a>!
<a class="l" name="53" href="#53">53</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>:<a href="/source/s?defs=MonthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">MonthView</a>!
<a class="l" name="54" href="#54">54</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=IBOutlet" class="intelliWindow-symbol" data-definition-place="undefined-in-file">IBOutlet</a> <b>private</b> <b>weak</b> <b>var</b> <a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>:<a href="/source/s?defs=YearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">YearView</a>!
<a class="l" name="55" href="#55">55</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="56" href="#56">56</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="57" href="#57">57</a><span class='fold-space'>&nbsp;</span>    <b>private</b> <b>var</b> <a class="xv" name="selectedDate"/><a href="/source/s?refs=selectedDate" class="xv intelliWindow-symbol" data-definition-place="def">selectedDate</a>:<a href="/source/s?defs=Date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Date</a>! = <a href="/source/s?defs=Date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Date</a>() &#123;
<a class="l" name="58" href="#58">58</a><span class='fold-space'>&nbsp;</span>        <b>didSet</b> &#123;
<a class="l" name="59" href="#59">59</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#delegate" data-definition-place="defined-in-file">delegate</a>?.<a class="d intelliWindow-symbol" href="#didChange" data-definition-place="defined-in-file">didChange</a>(<a href="/source/s?defs=toDate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">toDate</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="hl" name="60" href="#60">60</a><span class='fold-space'>&nbsp;</span>        &#125;
<a class="l" name="61" href="#61">61</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="62" href="#62">62</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="63" href="#63">63</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="64" href="#64">64</a><span class='fold-space'>&nbsp;</span>    <b>required</b> <b>public</b> <b>init</b>?(<a href="/source/s?defs=coder" class="intelliWindow-symbol" data-definition-place="undefined-in-file">coder</a> <a href="/source/s?defs=aDecoder" class="intelliWindow-symbol" data-definition-place="undefined-in-file">aDecoder</a>: <a href="/source/s?defs=NSCoder" class="intelliWindow-symbol" data-definition-place="undefined-in-file">NSCoder</a>) &#123;   <span class="c">// 2 - storyboard initializer</span>
<a class="l" name="65" href="#65">65</a><span class='fold-space'>&nbsp;</span>        <b>super</b>.<b>init</b>(<a href="/source/s?defs=coder" class="intelliWindow-symbol" data-definition-place="undefined-in-file">coder</a>: <a href="/source/s?defs=aDecoder" class="intelliWindow-symbol" data-definition-place="undefined-in-file">aDecoder</a>)
<a class="l" name="66" href="#66">66</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="67" href="#67">67</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=fromNib" class="intelliWindow-symbol" data-definition-place="undefined-in-file">fromNib</a>()   <span class="c">// 5.</span>
<a class="l" name="68" href="#68">68</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="69" href="#69">69</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="hl" name="70" href="#70">70</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="71" href="#71">71</a><span class='fold-space'>&nbsp;</span>    <b>override</b> <b>init</b>(<a href="/source/s?defs=frame" class="intelliWindow-symbol" data-definition-place="undefined-in-file">frame</a>: <a href="/source/s?defs=CGRect" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CGRect</a>) &#123;
<a class="l" name="72" href="#72">72</a><span class='fold-space'>&nbsp;</span>        <b>super</b>.<b>init</b>(<a href="/source/s?defs=frame" class="intelliWindow-symbol" data-definition-place="undefined-in-file">frame</a>: <a href="/source/s?defs=CGRect" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CGRect</a>())  <span class="c">// 4.</span>
<a class="l" name="73" href="#73">73</a><span class='fold-space'>&nbsp;</span>        <a href="/source/s?defs=fromNib" class="intelliWindow-symbol" data-definition-place="undefined-in-file">fromNib</a>()  <span class="c">// 6.</span>
<a class="l" name="74" href="#74">74</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="75" href="#75">75</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="76" href="#76">76</a><span class='fold-space'>&nbsp;</span>    <b>public</b> <b>convenience</b> <b>init</b>(<a href="/source/s?defs=frame" class="intelliWindow-symbol" data-definition-place="undefined-in-file">frame</a>: <a href="/source/s?defs=CGRect" class="intelliWindow-symbol" data-definition-place="undefined-in-file">CGRect</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a href="/source/s?defs=Date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Date</a>) &#123;
<a class="l" name="77" href="#77">77</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="78" href="#78">78</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<b>init</b>(<a href="/source/s?defs=frame" class="intelliWindow-symbol" data-definition-place="undefined-in-file">frame</a>: <a href="/source/s?defs=frame" class="intelliWindow-symbol" data-definition-place="undefined-in-file">frame</a>)
<a class="l" name="79" href="#79">79</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>
<a class="hl" name="80" href="#80">80</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a class="d intelliWindow-symbol" href="#awakeFromNib" data-definition-place="defined-in-file">awakeFromNib</a>()
<a class="l" name="81" href="#81">81</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="82" href="#82">82</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="83" href="#83">83</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="84" href="#84">84</a><span class='fold-space'>&nbsp;</span>    <b>public</b> <b>var</b> <a class="xv" name="mainColor"/><a href="/source/s?refs=mainColor" class="xv intelliWindow-symbol" data-definition-place="def">mainColor</a>: <a href="/source/s?defs=UIColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIColor</a>! = <a href="/source/s?defs=UIColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIColor</a>(<a href="/source/s?defs=red" class="intelliWindow-symbol" data-definition-place="undefined-in-file">red</a>:<span class="n">0.99</span>, <a href="/source/s?defs=green" class="intelliWindow-symbol" data-definition-place="undefined-in-file">green</a>:<span class="n">0.28</span>, <a href="/source/s?defs=blue" class="intelliWindow-symbol" data-definition-place="undefined-in-file">blue</a>:<span class="n">0.25</span>, <a href="/source/s?defs=alpha" class="intelliWindow-symbol" data-definition-place="undefined-in-file">alpha</a>:<span class="n">1.0</span>) &#123; <span class="c">// #FD4741</span>
<a class="l" name="85" href="#85">85</a><span class='fold-space'>&nbsp;</span>        <b>didSet</b> &#123;
<a class="l" name="86" href="#86">86</a><span class='fold-space'>&nbsp;</span>            <b>self</b>.<a href="/source/s?defs=topView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">topView</a>.<a href="/source/s?defs=backgroundColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">backgroundColor</a> = <a class="d intelliWindow-symbol" href="#mainColor" data-definition-place="defined-in-file">mainColor</a>
<a class="l" name="87" href="#87">87</a><span class='fold-space'>&nbsp;</span>            <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=weekDayLabel" class="intelliWindow-symbol" data-definition-place="undefined-in-file">weekDayLabel</a>.<a href="/source/s?defs=textColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">textColor</a> = <a class="d intelliWindow-symbol" href="#mainColor" data-definition-place="defined-in-file">mainColor</a>
<a class="l" name="88" href="#88">88</a><span class='fold-space'>&nbsp;</span>        &#125;
<a class="l" name="89" href="#89">89</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="hl" name="90" href="#90">90</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="91" href="#91">91</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="92" href="#92">92</a><span class='fold-space'>&nbsp;</span>    <span class="c">/*init() {   // 3 - programmatic initializer</span>
<a class="l" name="93" href="#93">93</a><span class='fold-space'>&nbsp;</span><span class="c">        <a href="/source/s?path=super.ini">super.ini</a>t(frame: CGRect())  // 4.</span>
<a class="l" name="94" href="#94">94</a><span class='fold-space'>&nbsp;</span><span class="c"></span>
<a class="l" name="95" href="#95">95</a><span class='fold-space'>&nbsp;</span><span class="c"></span>
<a class="l" name="96" href="#96">96</a><span class='fold-space'>&nbsp;</span><span class="c">    }*/</span>
<a class="l" name="97" href="#97">97</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="98" href="#98">98</a><span class='fold-space'>&nbsp;</span>    <b>override</b> <b>public</b> <b>func</b> <a class="xf" name="awakeFromNib"/><a href="/source/s?refs=awakeFromNib" class="xf intelliWindow-symbol" data-definition-place="def">awakeFromNib</a>() &#123;
<a class="l" name="99" href="#99">99</a><span class='fold-space'>&nbsp;</span>        <b>super</b>.<a class="d intelliWindow-symbol" href="#awakeFromNib" data-definition-place="defined-in-file">awakeFromNib</a>()
<a class="hl" name="100" href="#100">100</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="101" href="#101">101</a><span class='fold-space'>&nbsp;</span>        <span class="c">// topView Rounded Corner</span>
<a class="l" name="102" href="#102">102</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=topView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">topView</a>.<a href="/source/s?defs=layer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">layer</a>.<a href="/source/s?defs=cornerRadius" class="intelliWindow-symbol" data-definition-place="undefined-in-file">cornerRadius</a> = <span class="n">10.0</span>
<a class="l" name="103" href="#103">103</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=topView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">topView</a>.<a href="/source/s?defs=clipsToBounds" class="intelliWindow-symbol" data-definition-place="undefined-in-file">clipsToBounds</a> = <b>true</b>
<a class="l" name="104" href="#104">104</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="105" href="#105">105</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="106" href="#106">106</a><span class='fold-space'>&nbsp;</span>        <span class="c">// middleView Border</span>
<a class="l" name="107" href="#107">107</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=middleView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">middleView</a>.<a href="/source/s?defs=layer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">layer</a>.<a href="/source/s?defs=borderColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">borderColor</a> = <a href="/source/s?defs=UIColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIColor</a>.<a href="/source/s?defs=groupTableViewBackground" class="intelliWindow-symbol" data-definition-place="undefined-in-file">groupTableViewBackground</a>.<a href="/source/s?defs=cgColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">cgColor</a>
<a class="l" name="108" href="#108">108</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=middleView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">middleView</a>.<a href="/source/s?defs=layer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">layer</a>.<a href="/source/s?defs=borderWidth" class="intelliWindow-symbol" data-definition-place="undefined-in-file">borderWidth</a> = <span class="n">1.0</span>
<a class="l" name="109" href="#109">109</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="110" href="#110">110</a><span class='fold-space'>&nbsp;</span>        <span class="c">// bottomView Rounded Corner &amp; border</span>
<a class="l" name="111" href="#111">111</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=bottomView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">bottomView</a>.<a href="/source/s?defs=layer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">layer</a>.<a href="/source/s?defs=cornerRadius" class="intelliWindow-symbol" data-definition-place="undefined-in-file">cornerRadius</a> = <span class="n">10.0</span>
<a class="l" name="112" href="#112">112</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=bottomView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">bottomView</a>.<a href="/source/s?defs=layer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">layer</a>.<a href="/source/s?defs=borderColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">borderColor</a> = <a href="/source/s?defs=UIColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIColor</a>.<a href="/source/s?defs=groupTableViewBackground" class="intelliWindow-symbol" data-definition-place="undefined-in-file">groupTableViewBackground</a>.<a href="/source/s?defs=cgColor" class="intelliWindow-symbol" data-definition-place="undefined-in-file">cgColor</a>
<a class="l" name="113" href="#113">113</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=bottomView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">bottomView</a>.<a href="/source/s?defs=layer" class="intelliWindow-symbol" data-definition-place="undefined-in-file">layer</a>.<a href="/source/s?defs=borderWidth" class="intelliWindow-symbol" data-definition-place="undefined-in-file">borderWidth</a> = <span class="n">1.0</span>
<a class="l" name="114" href="#114">114</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="115" href="#115">115</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="116" href="#116">116</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="117" href="#117">117</a><span class='fold-space'>&nbsp;</span>        <span class="c">// setting buttons</span>
<a class="l" name="118" href="#118">118</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=monthPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthPrevBtn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> = <span class="n">0</span>
<a class="l" name="119" href="#119">119</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=monthPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthPrevBtn</a>.<a href="/source/s?defs=addTarget" class="intelliWindow-symbol" data-definition-place="undefined-in-file">addTarget</a>(<b>self</b>, <a href="/source/s?defs=action" class="intelliWindow-symbol" data-definition-place="undefined-in-file">action</a>: #<a href="/source/s?defs=selector" class="intelliWindow-symbol" data-definition-place="undefined-in-file">selector</a>(<b>self</b>.<a class="d intelliWindow-symbol" href="#changeDate" data-definition-place="defined-in-file">changeDate</a>), <b>for</b>: .<a href="/source/s?defs=touchUpInside" class="intelliWindow-symbol" data-definition-place="undefined-in-file">touchUpInside</a>)
<a class="hl" name="120" href="#120">120</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="121" href="#121">121</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=monthNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthNextBtn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> = <span class="n">1</span>
<a class="l" name="122" href="#122">122</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=monthNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthNextBtn</a>.<a href="/source/s?defs=addTarget" class="intelliWindow-symbol" data-definition-place="undefined-in-file">addTarget</a>(<b>self</b>, <a href="/source/s?defs=action" class="intelliWindow-symbol" data-definition-place="undefined-in-file">action</a>: #<a href="/source/s?defs=selector" class="intelliWindow-symbol" data-definition-place="undefined-in-file">selector</a>(<b>self</b>.<a class="d intelliWindow-symbol" href="#changeDate" data-definition-place="defined-in-file">changeDate</a>), <b>for</b>: .<a href="/source/s?defs=touchUpInside" class="intelliWindow-symbol" data-definition-place="undefined-in-file">touchUpInside</a>)
<a class="l" name="123" href="#123">123</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="124" href="#124">124</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=dayPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayPrevBtn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> = <span class="n">2</span>
<a class="l" name="125" href="#125">125</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=dayPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayPrevBtn</a>.<a href="/source/s?defs=addTarget" class="intelliWindow-symbol" data-definition-place="undefined-in-file">addTarget</a>(<b>self</b>, <a href="/source/s?defs=action" class="intelliWindow-symbol" data-definition-place="undefined-in-file">action</a>: #<a href="/source/s?defs=selector" class="intelliWindow-symbol" data-definition-place="undefined-in-file">selector</a>(<b>self</b>.<a class="d intelliWindow-symbol" href="#changeDate" data-definition-place="defined-in-file">changeDate</a>), <b>for</b>: .<a href="/source/s?defs=touchUpInside" class="intelliWindow-symbol" data-definition-place="undefined-in-file">touchUpInside</a>)
<a class="l" name="126" href="#126">126</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="127" href="#127">127</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=dayNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayNextBtn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> = <span class="n">3</span>
<a class="l" name="128" href="#128">128</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=dayNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayNextBtn</a>.<a href="/source/s?defs=addTarget" class="intelliWindow-symbol" data-definition-place="undefined-in-file">addTarget</a>(<b>self</b>, <a href="/source/s?defs=action" class="intelliWindow-symbol" data-definition-place="undefined-in-file">action</a>: #<a href="/source/s?defs=selector" class="intelliWindow-symbol" data-definition-place="undefined-in-file">selector</a>(<b>self</b>.<a class="d intelliWindow-symbol" href="#changeDate" data-definition-place="defined-in-file">changeDate</a>), <b>for</b>: .<a href="/source/s?defs=touchUpInside" class="intelliWindow-symbol" data-definition-place="undefined-in-file">touchUpInside</a>)
<a class="l" name="129" href="#129">129</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="130" href="#130">130</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="131" href="#131">131</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=yearPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearPrevBtn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> = <span class="n">4</span>
<a class="l" name="132" href="#132">132</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=yearPrevBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearPrevBtn</a>.<a href="/source/s?defs=addTarget" class="intelliWindow-symbol" data-definition-place="undefined-in-file">addTarget</a>(<b>self</b>, <a href="/source/s?defs=action" class="intelliWindow-symbol" data-definition-place="undefined-in-file">action</a>: #<a href="/source/s?defs=selector" class="intelliWindow-symbol" data-definition-place="undefined-in-file">selector</a>(<b>self</b>.<a class="d intelliWindow-symbol" href="#changeDate" data-definition-place="defined-in-file">changeDate</a>), <b>for</b>: .<a href="/source/s?defs=touchUpInside" class="intelliWindow-symbol" data-definition-place="undefined-in-file">touchUpInside</a>)
<a class="l" name="133" href="#133">133</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="134" href="#134">134</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=yearNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearNextBtn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> = <span class="n">5</span>
<a class="l" name="135" href="#135">135</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=yearNextBtn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearNextBtn</a>.<a href="/source/s?defs=addTarget" class="intelliWindow-symbol" data-definition-place="undefined-in-file">addTarget</a>(<b>self</b>, <a href="/source/s?defs=action" class="intelliWindow-symbol" data-definition-place="undefined-in-file">action</a>: #<a href="/source/s?defs=selector" class="intelliWindow-symbol" data-definition-place="undefined-in-file">selector</a>(<b>self</b>.<a class="d intelliWindow-symbol" href="#changeDate" data-definition-place="defined-in-file">changeDate</a>), <b>for</b>: .<a href="/source/s?defs=touchUpInside" class="intelliWindow-symbol" data-definition-place="undefined-in-file">touchUpInside</a>)
<a class="l" name="136" href="#136">136</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="137" href="#137">137</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="138" href="#138">138</a><span class='fold-space'>&nbsp;</span>        <a class="d intelliWindow-symbol" href="#setLabel" data-definition-place="defined-in-file">setLabel</a>(<a href="/source/s?defs=toDate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">toDate</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="139" href="#139">139</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="140" href="#140">140</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="141" href="#141">141</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="142" href="#142">142</a><span class='fold-space'>&nbsp;</span>    <b>public</b> <b>func</b> <b>set</b>(<a href="/source/s?defs=toDate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">toDate</a> <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a href="/source/s?defs=Date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Date</a>) &#123;
<a class="l" name="143" href="#143">143</a><span class='fold-space'>&nbsp;</span>        <a class="d intelliWindow-symbol" href="#setLabel" data-definition-place="defined-in-file">setLabel</a>(<a href="/source/s?defs=toDate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">toDate</a>: <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>)
<a class="l" name="144" href="#144">144</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>
<a class="l" name="145" href="#145">145</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="146" href="#146">146</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="147" href="#147">147</a><span class='fold-space'>&nbsp;</span>    <b>private</b> <b>func</b> <a class="xf" name="setLabel"/><a href="/source/s?refs=setLabel" class="xf intelliWindow-symbol" data-definition-place="def">setLabel</a>(<a href="/source/s?defs=toDate" class="intelliWindow-symbol" data-definition-place="undefined-in-file">toDate</a> <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a href="/source/s?defs=Date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Date</a>) &#123;
<a class="l" name="148" href="#148">148</a><span class='fold-space'>&nbsp;</span>        <b>let</b> <a class="xv" name="formatter"/><a href="/source/s?refs=formatter" class="xv intelliWindow-symbol" data-definition-place="def">formatter</a> = <a href="/source/s?defs=DateFormatter" class="intelliWindow-symbol" data-definition-place="undefined-in-file">DateFormatter</a>()
<a class="l" name="149" href="#149">149</a><span class='fold-space'>&nbsp;</span>
<a class="hl" name="150" href="#150">150</a><span class='fold-space'>&nbsp;</span>        <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=dateFormat" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dateFormat</a> = <span class="s">&quot;MMM&quot;</span>
<a class="l" name="151" href="#151">151</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=monthLabel" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthLabel</a>.<a href="/source/s?defs=text" class="intelliWindow-symbol" data-definition-place="undefined-in-file">text</a> = <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=string" class="intelliWindow-symbol" data-definition-place="undefined-in-file">string</a>(<a href="/source/s?defs=from" class="intelliWindow-symbol" data-definition-place="undefined-in-file">from</a>: <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>)
<a class="l" name="152" href="#152">152</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="153" href="#153">153</a><span class='fold-space'>&nbsp;</span>        <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=dateFormat" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dateFormat</a> = <span class="s">&quot;dd&quot;</span>
<a class="l" name="154" href="#154">154</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=dayLabel" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayLabel</a>.<a href="/source/s?defs=text" class="intelliWindow-symbol" data-definition-place="undefined-in-file">text</a> = <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=string" class="intelliWindow-symbol" data-definition-place="undefined-in-file">string</a>(<a href="/source/s?defs=from" class="intelliWindow-symbol" data-definition-place="undefined-in-file">from</a>: <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>)
<a class="l" name="155" href="#155">155</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="156" href="#156">156</a><span class='fold-space'>&nbsp;</span>        <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=dateFormat" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dateFormat</a> = <span class="s">&quot;EEEE&quot;</span>
<a class="l" name="157" href="#157">157</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=weekDayLabel" class="intelliWindow-symbol" data-definition-place="undefined-in-file">weekDayLabel</a>.<a href="/source/s?defs=text" class="intelliWindow-symbol" data-definition-place="undefined-in-file">text</a> = <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=string" class="intelliWindow-symbol" data-definition-place="undefined-in-file">string</a>(<a href="/source/s?defs=from" class="intelliWindow-symbol" data-definition-place="undefined-in-file">from</a>: <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>)
<a class="l" name="158" href="#158">158</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="159" href="#159">159</a><span class='fold-space'>&nbsp;</span>        <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=dateFormat" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dateFormat</a> = <span class="s">&quot;&quot;&quot;</span>
<a class="hl" name="160" href="#160">160</a><span class='fold-space'>&nbsp;</span><span class="s">            YYYY</span>
<a class="l" name="161" href="#161">161</a><span class='fold-space'>&nbsp;</span><span class="s">            &quot;&quot;&quot;</span>
<a class="l" name="162" href="#162">162</a><span class='fold-space'>&nbsp;</span>        <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=yearLabel" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearLabel</a>.<a href="/source/s?defs=text" class="intelliWindow-symbol" data-definition-place="undefined-in-file">text</a> = <a class="d intelliWindow-symbol" href="#formatter" data-definition-place="defined-in-file">formatter</a>.<a href="/source/s?defs=string" class="intelliWindow-symbol" data-definition-place="undefined-in-file">string</a>(<a href="/source/s?defs=from" class="intelliWindow-symbol" data-definition-place="undefined-in-file">from</a>: <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>)
<a class="l" name="163" href="#163">163</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="164" href="#164">164</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="165" href="#165">165</a><span class='fold-space'>&nbsp;</span>    @<a href="/source/s?defs=objc" class="intelliWindow-symbol" data-definition-place="undefined-in-file">objc</a> <b>private</b> <b>func</b> <a class="xf" name="changeDate"/><a href="/source/s?refs=changeDate" class="xf intelliWindow-symbol" data-definition-place="def">changeDate</a>(<a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>: <a href="/source/s?defs=UIButton" class="intelliWindow-symbol" data-definition-place="undefined-in-file">UIButton</a>) &#123;
<a class="l" name="166" href="#166">166</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="167" href="#167">167</a><span class='fold-space'>&nbsp;</span>        <b>if</b> <a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> == <span class="n">0</span> + <span class="n">0b10</span> - <span class="n">0b1_0</span> &#123;
<a class="l" name="168" href="#168">168</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="169" href="#169">169</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=backward" class="intelliWindow-symbol" data-definition-place="undefined-in-file">backward</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="hl" name="170" href="#170">170</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="171" href="#171">171</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="172" href="#172">172</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="173" href="#173">173</a><span class='fold-space'>&nbsp;</span>        &#125; <b>else</b> <b>if</b> <a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> == <span class="n">1</span> + <span class="n">0o70</span> - <span class="n">0o7_0</span> &#123;
<a class="l" name="174" href="#174">174</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="175" href="#175">175</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> =  <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=forward" class="intelliWindow-symbol" data-definition-place="undefined-in-file">forward</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="176" href="#176">176</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="177" href="#177">177</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="178" href="#178">178</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="179" href="#179">179</a><span class='fold-space'>&nbsp;</span>        &#125; <b>else</b> <b>if</b> <a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> == <span class="n">2</span> + <span class="n">0xFF0</span> - <span class="n">0xFF0</span> + <span class="n">0xFp2</span> - <span class="n">0xFP2</span> + <span class="n">0x0p-2</span> - <span class="n">0x0p-2</span> &#123;
<a class="hl" name="180" href="#180">180</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="181" href="#181">181</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=backward" class="intelliWindow-symbol" data-definition-place="undefined-in-file">backward</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="182" href="#182">182</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="183" href="#183">183</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="184" href="#184">184</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="185" href="#185">185</a><span class='fold-space'>&nbsp;</span>        &#125; <b>else</b> <b>if</b> <a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> == <span class="n">3</span> + <span class="n">4_2.0</span> - <span class="n">4_2.0</span> + <span class="n">-1.0_0e2</span> - <span class="n">-1.0e2</span> + <span class="n">2e1_0</span> - <span class="n">2e10</span> &#123;
<a class="l" name="186" href="#186">186</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="187" href="#187">187</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=forward" class="intelliWindow-symbol" data-definition-place="undefined-in-file">forward</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="188" href="#188">188</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="189" href="#189">189</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="hl" name="190" href="#190">190</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="191" href="#191">191</a><span class='fold-space'>&nbsp;</span>        &#125; <b>else</b> <b>if</b> <a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> == <span class="n">4</span> &#123;
<a class="l" name="192" href="#192">192</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="193" href="#193">193</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=backward" class="intelliWindow-symbol" data-definition-place="undefined-in-file">backward</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="194" href="#194">194</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="195" href="#195">195</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="196" href="#196">196</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="197" href="#197">197</a><span class='fold-space'>&nbsp;</span>        &#125; <b>else</b> <b>if</b> <a href="/source/s?defs=btn" class="intelliWindow-symbol" data-definition-place="undefined-in-file">btn</a>.<a href="/source/s?defs=tag" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tag</a> == <span class="n">5</span> &#123;
<a class="l" name="198" href="#198">198</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="199" href="#199">199</a><span class='fold-space'>&nbsp;</span>            <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a> = <b>self</b>.<a href="/source/s?defs=yearView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">yearView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=forward" class="intelliWindow-symbol" data-definition-place="undefined-in-file">forward</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="hl" name="200" href="#200">200</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=dayView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">dayView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="201" href="#201">201</a><span class='fold-space'>&nbsp;</span>            <b>_</b> = <b>self</b>.<a href="/source/s?defs=monthView" class="intelliWindow-symbol" data-definition-place="undefined-in-file">monthView</a>.<a href="/source/s?defs=anim" class="intelliWindow-symbol" data-definition-place="undefined-in-file">anim</a>(<a href="/source/s?defs=direction" class="intelliWindow-symbol" data-definition-place="undefined-in-file">direction</a>: .<a href="/source/s?defs=identity" class="intelliWindow-symbol" data-definition-place="undefined-in-file">identity</a>, <a href="/source/s?defs=date" class="intelliWindow-symbol" data-definition-place="undefined-in-file">date</a>: <a class="d intelliWindow-symbol" href="#selectedDate" data-definition-place="defined-in-file">selectedDate</a>)
<a class="l" name="202" href="#202">202</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="203" href="#203">203</a><span class='fold-space'>&nbsp;</span>        &#125;
<a class="l" name="204" href="#204">204</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="205" href="#205">205</a><span class='fold-space'>&nbsp;</span>    &#125;
<a class="l" name="206" href="#206">206</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="207" href="#207">207</a><span class='fold-space'>&nbsp;</span>    <span class="c">/*</span>
<a class="l" name="208" href="#208">208</a><span class='fold-space'>&nbsp;</span><span class="c">    // Only override draw() if you perform custom drawing.</span>
<a class="l" name="209" href="#209">209</a><span class='fold-space'>&nbsp;</span><span class="c">    // An empty implementation adversely affects performance during animation.</span>
<a class="hl" name="210" href="#210">210</a><span class='fold-space'>&nbsp;</span><span class="c">    override func draw(_ rect: CGRect) {</span>
<a class="l" name="211" href="#211">211</a><span class='fold-space'>&nbsp;</span><span class="c">        // Drawing code</span>
<a class="l" name="212" href="#212">212</a><span class='fold-space'>&nbsp;</span><span class="c">    }</span>
<a class="l" name="213" href="#213">213</a><span class='fold-space'>&nbsp;</span><span class="c">    */</span>
<a class="l" name="214" href="#214">214</a><span class='fold-space'>&nbsp;</span>
<a class="l" name="215" href="#215">215</a><span class='fold-space'>&nbsp;</span>    <b>private</b> <a href="/source/s?defs=Int" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Int</a> `<a href="/source/s?defs=class" class="intelliWindow-symbol" data-definition-place="undefined-in-file">class</a>`
<a class="l" name="216" href="#216">216</a><span class='fold-space'>&nbsp;</span>&#125;
</span><a class="l" name="217" href="#217">217</a><span class='fold-space'>&nbsp;</span><span class="c">/*<a href="http://example.com">http://example.com</a>.*/</span>
<a class="l" name="218" href="#218">218</a><span class='fold-space'>&nbsp;</span><span class="c">/* comment /* comment */</span>
<a class="l" name="219" href="#219">219</a><span class='fold-space'>&nbsp;</span><span class="c">comment</span>
<a class="hl" name="220" href="#220">220</a><span class='fold-space'>&nbsp;</span><span class="c">*/</span>
<a class="l" name="221" href="#221">221</a><span class='fold-space'>&nbsp;</span></body>
</html>
